package com.lzh.springboot.rabbitmqdemo.message;

import java.io.Serializable;

/**
 * @Description: Fanout Exchange 路由方式
 * @Author: LiuZiHao
 * @Date: 2022/5/18 17:27
 */
public class Demo03Message implements Serializable {
    public static final String QUEUE_A = "QUEUE_DEMO_03_A";
    public static final String QUEUE_B = "QUEUE_DEMO_03_B";
    public static final String EXCHANGE = "EXCHANGE_DEMO_03";
    //未定义RoutingKey,因为Fanout Exchange 模式 仅需要Exchange即可
    /**
     * 编号
     */
    private Integer id;

    public Demo03Message() {
    }

    public Demo03Message(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Demo03Message{" +
                "id=" + id +
                '}';
    }
}
